::ng-deep :root {
  --background-element-color: rgba(0, 0, 0, 0.1);
  --selection-area-color: rgba(100, 108, 255, 0.14);
  --node-background-color: #ffffff;
  --node-border-radius: 2px;
  --node-border-color: rgba(60, 60, 67, 0.36);
  --node-color: rgba(60, 60, 67, 0.78);
  --node-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  --connection-color: rgba(60, 60, 67, 0.38);
  --snap-connection-color: rgba(60, 60, 67, 0.38);
  --connection-gradient-1: #915930;
  --connection-gradient-2: #18794e;
  --node-selected-border-color: #3451b2;
  --outlet-color: #3451b2;
  --input-output-color: rgba(60, 60, 67, 0.78);
  --minimap-background-color: #ffffff;
  --minimap-node-color: rgba(60, 60, 67);
  --minimap-node-selected-color: #3451b2;
  --minimap-view-color: rgba(100, 108, 255, 0.14);
  --team-group-bg: rgba(142, 150, 170, .14);
  .dark {
    --background-element-color: rgba(255, 255, 255, 0.1);
    --selection-area-color: rgba(100, 108, 255, 0.16);
    --node-background-color: #000000;
    --node-border-radius: 2px;
    --node-border-color: rgba(235, 235, 245, 0.38);
    --node-selected-border-color: #a8b1ff;
    --node-color: rgba(235, 235, 245, 0.6);
    --node-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --connection-color: rgba(235, 235, 245, 0.38);
    --snap-connection-color: rgba(235, 235, 245, 0.2);
    --connection-gradient-1: #f9b44e;
    --connection-gradient-2: #3dd68c;
    --outlet-color: #a8b1ff;
    --input-output-color: rgba(235, 235, 245, 0.6);
    --minimap-background-color: #1b1b1f;
    --minimap-node-color: rgba(255, 255, 245, 0.86);
    --minimap-node-selected-color: #a8b1ff;
    --minimap-view-color: rgba(100, 108, 255, 0.16);
    --team-group-bg: rgba(101, 117, 133, 0.16);
  }
}
@mixin connection {
  .f-connection {
    .f-connection-drag-handle {
      fill: transparent;
    }
    .f-connection-selection {
      fill: none;
    }
    .f-connection-path {
      fill: none;
      stroke: var(--connection-color);
      stroke-width: 2;
    }
    .f-connection-text,
    .f-connection-center {
      fill: var(--connection-color);
      color: var(--connection-color);
    }
    &.f-snap-connection {
      .f-connection-path {
        stroke: var(--snap-connection-color);
      }
    }
  }
}
@mixin background {
  .f-background {
    line {
      stroke: rgba(0, 0, 0, 0.6);
    }
    circle {
      fill: var(--background-element-color);
    }
  }
}
@mixin line-alignment {
  .f-line-alignment {
    .f-line {
      background-color: var(--snap-connection-color);
    }
  }
}
@mixin minimap {
  .f-minimap {
    background-color: var(--minimap-background-color);
    bottom: 16px;
    right: 16px;
    width: 120px;
    height: 120px;
    .f-minimap-node {
      fill: var(--minimap-node-color);
      &.f-selected {
        fill: var(--minimap-node-selected-color);
      }
    }
    .f-minimap-view {
      fill: var(--minimap-view-color);
    }
  }
}
@mixin node {
  min-height: 40px;
  color: var(--node-color);
  text-align: center;
  background: var(--color-components-card-bg);
  border-radius: var(--node-border-radius);
  border: 0.2px solid var(--node-border-color);
  cursor: move;
  &:active {
    box-shadow: var(--node-shadow);
  }
}
@mixin connectors {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--node-background-color);
  &.left {
    left: -4px;
    top: 20px;
  }
  &.right {
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
  }
  &.top {
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
  }
  &.top-left {
    top: -8px;
    left: -8px;
  }
  &.top-right {
    top: -8px;
    right: -8px;
  }
  &.bottom {
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
  }
  &.bottom-left {
    bottom: -8px;
    left: -8px;
  }
  &.bottom-right {
    bottom: -8px;
    right: -8px;
  }
}
@mixin toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  position: absolute;
  right: 16px;
  top: 16px;
  button {
    font-weight: 500;
    border: none;
    border-radius: 2px;
    padding: 4px 8px;
    line-height: normal;
  }
}
